﻿using Admin.ApplicationLib.Entities;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace Admin.ApplicationLib.EntityConfigurations;

public class OrganizationEntityTypeConfiguration : IEntityTypeConfiguration<OrganizationEntity>
{
    public void Configure(EntityTypeBuilder<OrganizationEntity> builder)
    {
        // builder.Entity<OrganizationEntity>(b => { b.ToTable("AspNetOrganizations").HasKey(p => p.Id); });
        //
        // builder.Entity<UserOrganizationEntity>(b =>
        // {
        //     b.HasKey(r => new { r.UserId, r.OrganizationId });
        //     b.ToTable("AspNetUserOrganizations");
        // });
        
        
    }
}